<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>提示页面 - 得力云管理系统</title>
<link rel="icon" href="favicon.ico" type="image/ico">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="yinqi">
<link href="__STATIC__/admin/css/bootstrap.min.css" rel="stylesheet">
<link href="__STATIC__/admin/css/materialdesignicons.min.css" rel="stylesheet">
<link href="__STATIC__/admin/css/style.min.css" rel="stylesheet">
<style>
body{
    background-color: #fff;
}
.error-page {
    height: 100%;
    position: fixed;
    width: 100%;
}
.error-body {
    padding-top: 5%;
}
.error-body h1 {
    font-size: 210px;
    font-weight: 700;
    text-shadow: 4px 4px 0 #f5f6fa, 6px 6px 0 #33cabb;
    line-height: 210px;
    color: #33cabb;
}
.error-body .error {
    color: #ff6767;
    text-shadow:4px 4px 0 #f5f6fa, 6px 6px 0 #ff6767;
}
.error-body h4 {
    margin: 30px 0px;
}
</style>
</head>
  
<body>
<?php 
    if ($code == 1) {
        $wait = 1;
    }
?>
<section class="error-page">
  <div class="error-box">
    <div class="error-body text-center">
        <?php switch ($code) {?>
            <?php case 1:?>
            <h1>SUCCESS</h1>
            <?php break;?>
            <?php case 0:?>
            <h1 class="error">ERROR</h1>
            <?php break;?>
        <?php } ?>
      <h4><?php echo(strip_tags($msg));?></h4>
      <div>页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b></div>
      <!-- <a href="<?php echo($url);?>" class="btn btn-primary ">返回</a> -->
    </div>
  </div>
</section>
<script type="text/javascript" src="__STATIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap.min.js"></script>
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
</body>
</html>